﻿using Iworld.Author.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Iworld.Author.Service.Backstage.Export
{
    /// <summary>
    /// 用户登录记录
    /// </summary>
    [DataContract]
    public class AuthorLandingRecordExport
    {
        /// <summary>
        /// 用户
        /// </summary>
        [DataMember]
        public AuthorExport Owner { get; set; }

        /// <summary>
        /// 网络地址
        /// </summary>
        [DataMember]
        public string Ip { get; set; }

        /// <summary>
        /// 实际地址
        /// </summary>
        [DataMember]
        public string Address { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        [DataMember]
        public DateTime CreatedTime { get; set; }


        public AuthorLandingRecordExport(AuthorLandingRecord x)
        {
            this.Owner = new AuthorExport(x.Owner);
            this.Ip = x.Ip;
            this.Address = x.Address;
            this.CreatedTime = x.CreatedTime;
        }
    }
}
